Fix support of `[target.'cfg(...)']` syntax for rustc and rustdoc flags
authortee-too <tee-too@users.noreply.github.com>
Thu, 13 Jul 2017 11:24:28 +0000 (13:24 +0200)
committertee-too <tee-too@users.noreply.github.com>
Thu, 13 Jul 2017 13:49:35 +0000 (15:49 +0200)
commit828247ac1e51e4d5908a0581fe02d527b36ee105
treeb6285683b5a6d181cffb2fc672e77f69db22b1f7
parentf709c35a35687b2665eb290695825375be91410b
Fix support of `[target.'cfg(...)']` syntax for rustc and rustdoc flags

Support of `[target.'cfg(...)']` for rustc and rustdoc flags is buggy.
This adds meaningful tests and fixes the issue.

Fixes #3499
src/cargo/ops/cargo_rustc/context.rs
tests/rustflags.rs